import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsString } from 'class-validator';

export class FileUploadDto {
  @ApiProperty({ type: 'string', format: 'binary' })
  file: any;
}
export class uploadIdDto {
  @ApiProperty({ type: 'string' })
  @IsString()
  uploadId: string;
}
export class ChunkFileDto {
  @ApiProperty({ type: 'string' })
  @IsString()
  index: string;
  @ApiProperty({ type: 'string' })
  @IsString()
  totalChunks: string;
  @ApiProperty({ type: 'string' })
  @IsString()
  uploadId: string;
  @ApiProperty({ type: 'string' })
  @IsString()
  fileName: string;
}

export class ChunkMergeFileDto {
  @ApiProperty({ type: 'string' })
  @IsString()
  uploadId: string;
  @ApiProperty({ type: 'string' })
  @IsString()
  fileName: string;
}
